from datetime import datetime

# 输入两个日期字符串
date_str1 = "2024/08/21"
date_str2 = "2024/12/02"

date_str3 = "2024/12/25"
date_str4 = "2025/03/25"

# 将字符串转换为日期对象
date1 = datetime.strptime(date_str1, "%Y/%m/%d")
date2 = datetime.strptime(date_str2, "%Y/%m/%d")
date3 = datetime.strptime(date_str3, "%Y/%m/%d")
date4 = datetime.strptime(date_str4, "%Y/%m/%d")

# 计算两个日期之间的间隔
delta1 = date2 - date1
delta2 = date4 - date3

# 输出间隔天数
print(delta1.days,delta2.days)